package com.ybkj.chat.module.friend_center.activity;

import com.ybkj.chat.R;
import com.ybkj.chat.base.BaseMvpActivity;
import com.ybkj.chat.ui.adapter.NearbyGroupAdapter;
import com.ybkj.chat.ui.view.recyclerview.DividerItemDecoration;
import com.ybkj.chat.ui.view.recyclerview.XRecyclerView;
import com.ybkj.chat.ui.view.refreshlayout.XRefreshLayout;
import com.ybkj.chat.utils.ResourcesUtil;

import butterknife.BindView;

/**
 * Author by wyq
 * Date on 2019/2/28
 * Description :附近群组
 */
public class NearbyGroupActivity extends BaseMvpActivity {

    @BindView(R.id.xrc_nearbygroup)
    XRecyclerView xrcNearbygroup;
    @BindView(R.id.xrf_nearbygroup)
    XRefreshLayout xrfNearbygroup;

    private NearbyGroupAdapter mNearbyGroupAdapter;

    @Override
    protected void injectPresenter() {

    }

    @Override
    protected void initTitle() {
        setTitleText("附近群组");
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_nearby_group;
    }

    @Override
    protected void initView() {
        initRecycle();
    }

    private void initRecycle() {
        xrcNearbygroup.addItemDecoration(new DividerItemDecoration(mContext, DividerItemDecoration.VERTICAL_LIST, 1,
                ResourcesUtil.getColor(R.color.color_7e7)));
        mNearbyGroupAdapter = new NearbyGroupAdapter(mContext);
        mNearbyGroupAdapter.addData("1");
        mNearbyGroupAdapter.addData("1");
        mNearbyGroupAdapter.addData("1");
        mNearbyGroupAdapter.addData("1");
        mNearbyGroupAdapter.addData("1");
        xrcNearbygroup.setAdapter(mNearbyGroupAdapter);
    }

    @Override
    protected void initData() {

    }

}
